#pragma once
#include "Camera.h"
#include "Transform.h"
#include "InputEventHandle.h"

using namespace DYEngine;

class CameraController : public InputEventHandle
{
public:
	CameraController();
	CameraController(Camera* pCamera);
	~CameraController();
	void BindCamera(Camera* pCamera);
public:
	void ScreenSizeChange(float x, float y);
	void MouseButtonPress(int key, int action);
	void CursorMove(float x, float y);
	void KeyPress(int key, int action);
	void ScrollEvent(float xoffset, float yoffset);
private:
	Camera* mCamera;
	Transform* mCamT;
	float mStartX;
	float mStartY;
	bool mIsPressLeft;
	bool mIsPressRight;
};

